using System;
using Admin.NET.Application.SqlSugarTD;
using SqlSugar;

public class powerconsumptionrecord
{
	[SugarColumn(IsPrimaryKey = true)]
	public DateTime createtime { get; set; }

	/// <summary>
	/// 租户ID
	/// </summary>
	[SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
	[TDTag]
	public long TenantId { get; set; }

	/// <summary>
	/// 表号/imei/序列号
	/// </summary>
	[SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
	[TDTag]
	public string Sn { get; set; }

	/// <summary>
	/// 表唯一编号
	/// </summary>
	public long MeterId { get; set; }

	/// <summary>
	/// 名称
	/// </summary>
	public string Name { get; set; }

	/// <summary>
	/// 协议类型：0：4G-modbus，1：4G-dlt645，2：采集器-modbus，3：采集器-dlt645
	/// </summary>
	public int ProtocolType { get; set; }

	/// <summary>
	/// 表地址或站号
	/// </summary>
	public object Addr { get; set; }

	/// <summary>
	/// 倍率，pt*ct，默认1
	/// </summary>
	public double Multiplier { get; set; }

	/// <summary>
	/// 组合有功总电能（表显）
	/// </summary>
	public decimal CombinedActiveTotalElectricEnergy { get; set; }

	/// <summary>
	/// 组合有功尖电能（表显）
	/// </summary>
	public decimal CombinedActiveSharpElectricEnergy { get; set; }

	/// <summary>
	/// 组合有功峰电能（表显）
	/// </summary>
	public decimal CombinedActivePeakElectricEnergy { get; set; }

	/// <summary>
	/// 组合有功平电能（表显）
	/// </summary>
	public decimal CombinedActiveFlatElectricEnergy { get; set; }

	/// <summary>
	/// 组合有功谷电能（表显）
	/// </summary>
	public decimal CombinedActiveValleyElectricEnergy { get; set; }

	/// <summary>
	/// 差值组合有功总电能（表显）
	/// </summary>
	public decimal CombinedActiveTotalElectricEnergyDifference { get; set; }

	/// <summary>
	/// 差值组合有功尖电能（表显）
	/// </summary>
	public decimal CombinedActiveSharpElectricEnergyDifference { get; set; }

	/// <summary>
	/// 差值组合有功峰电能（表显）
	/// </summary>
	public decimal CombinedActivePeakElectricEnergyDifference { get; set; }

	/// <summary>
	/// 差值组合有功平电能（表显）
	/// </summary>
	public decimal CombinedActiveFlatElectricEnergyDifference { get; set; }

	/// <summary>
	/// 差值组合有功谷电能（表显）
	/// </summary>
	public decimal CombinedActiveValleyElectricEnergyDifference { get; set; }

	/// <summary>
	/// 结算费用（元）
	/// </summary>
	public decimal Amount { get; set; }

	/// <summary>
	/// 电价方案
	/// </summary>
	public long PriceRuleId { get; set; }

	/// <summary>
	/// 0单费率，1复费率
	/// </summary>
	public int Type { get; set; }

	/// <summary>
	/// 单费率单价 元/度
	/// </summary>
	public decimal Price { get; set; }

	/// <summary>
	/// 尖 单价 元/度
	/// </summary>
	public decimal SharpPrice { get; set; }

	/// <summary>
	/// 峰 单价 元/度
	/// </summary>
	public decimal PeakPrice { get; set; }

	/// <summary>
	/// 平 单价 元/度
	/// </summary>
	public decimal FlatPrice { get; set; }

	/// <summary>
	/// 谷 单价 元/度
	/// </summary>
	public decimal ValleyPrice { get; set; }

	/// <summary>
	/// 区域id
	/// </summary>
	public long BuildingId { get; set; }

	/// <summary>
	/// 房间id
	/// </summary>
	public long RoomId { get; set; }

	/// <summary>
	/// 采集器id
	/// </summary>
	public long CollectorId { get; set; }

	/// <summary>
	/// A电压
	/// </summary>
	public decimal VoltageA { get; set; }

	/// <summary>
	/// B电压
	/// </summary>
	public decimal VoltageB { get; set; }

	/// <summary>
	/// c电压
	/// </summary>
	public decimal VoltageC { get; set; }

	/// <summary>
	/// A电流
	/// </summary>
	public decimal CurrentA { get; set; }

	/// <summary>
	/// B电流
	/// </summary>
	public decimal CurrentB { get; set; }

	/// <summary>
	/// C电流
	/// </summary>
	public decimal CurrentC { get; set; }

	/// <summary>
	/// 总有功功率
	/// </summary>
	public decimal ActivePowerAll { get; set; }

	/// <summary>
	/// A像功率
	/// </summary>
	public decimal ActivePowerA { get; set; }

	/// <summary>
	/// b功率
	/// </summary>
	public decimal ActivePowerB { get; set; }

	/// <summary>
	/// c功率
	/// </summary>
	public decimal ActivePowerC { get; set; }
}
